package com.swan.controllers;

import com.swan.beans.ClassBase;
import com.swan.models.ClassDao;

public class ClassController {

    public boolean addClass(ClassBase classBase){
        ClassDao classDao = new ClassDao();
        return classDao.addClass(classBase);
    }

    public boolean removeClass(int classId){
        ClassDao classDao = new ClassDao();
        return classDao.removeClass(classId);
    }

    public boolean bindSeason(int classId,int seasonId){
        ClassDao classDao = new ClassDao();
        classDao.unBindSeasonClass(seasonId,classId);
        return true;
    }

    public boolean unbindSeason(int classId,int seasonId){
        ClassDao classDao = new ClassDao();
        classDao.unBindSeasonClass(seasonId,classId);
        return true;
    }

    public boolean unregisterClass(int userId,int seasonClassId){
        ClassDao classDao = new ClassDao();
        classDao.removeRegisterClass(userId,seasonClassId);
        return true;
    }

    public boolean classRegister(int userId,int seasonClassId){
        ClassDao classDao = new ClassDao();
        classDao.registerClass(userId, seasonClassId);
        return true;
    }



}
